import * as fs from "fs";
export const getFilesInDirectory = (dir: string): string[] => {
	try {
		// 读取目录中的所有文件和文件夹
		const files = fs.readdirSync(dir);
		return files;
	} catch (error) {
		console.error("读取目录时出错:", error);
		return [];
	}
};
